package com.wyk.service;

import com.wyk.bean.Payment;
import com.wyk.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author WangYuKai
 * @Date 2022/6/23
 * @apiNote
 */
@Component
@FeignClient(value = "CLOUD-ZHIFU-SERVICE")
public interface PaymentFeignService {

    @GetMapping("/payment/{id}")
    public Result<Payment> getPaymentById(@PathVariable("id") Integer id);

    @GetMapping("/payment/timeout")
    public String getPaymentTimeOut();


}
